<%@ include file="/taglibs.jsp"%>

<div class="pageContent" layoutH="0">	
<form method="post" action="transfer_save.do" class="pageForm required-validate" onsubmit="return validateCallback(this,callBackCloseCurrrentPanel)">
	<div class="pageFormContent" layoutH="56">
	<fieldset>
	<legend><s:property value="staff.name"/>&nbsp;调动情况</legend>
	<table class="table" width="100%">
	<thead>
	<tr>
	<th>姓 名</th>
	<th>调动时间</th>
	<th>服务客户</th>
	<th>调动类型</th>
	<th>事 由</th>
	</tr>
	</thead>
	<tbody>
	<s:iterator value="transferLst">
	<tr>
	<td><s:property value="staff.name"/></td>
	<td><s:date name="transferDate" format="yyyy-MM-dd"/></td>
	<td><s:property value="sc.name"/></td>
	<td><s:if test="transferType=='ASSIGN_IN'">入 场</s:if>
	<s:else>出 场</s:else></td>
	<td><s:property value="remark"/></td>
	</tr>
	</s:iterator>
	</tbody>
</table>
	</fieldset>

	<fieldset>
		<legend><s:property value="staff.name"/>&nbsp;添加调动信息</legend>
			<dl>
				<dt>异动时间：</dt>
				<dd><input type="text" name="transferInfo.transferDate" class="date required" dateFmt="yyyy-M-d"/></dd>
			</dl>
			<dl>
				<dt>服务客户：</dt>
				<dd>
				<select class="combox" name="serviceCustomerId" class="required">
					<option value="">请选择</option>
					<s:iterator value="#application.SC_LIST">
 						<option value="<s:property value='id'/>"><s:property value="name"/></option>
     				</s:iterator>
				</select>
				</dd>
			</dl>
			<dl>
				<dt>异动类型：</dt>
				<dd>
					<select class="combox" name="transferInfo.transferType" class="required">
						<option value="">请选择</option>
						<option value="ASSIGN_IN">入场</option>
						<option value="ASSIGN_OUT">出场</option>
					</select>
				</dd>
			</dl>
			
			<dl>
				<dt>事 由：</dt>
				<dd>
					<input type="text" name="transferInfo.remark" size="50" maxlength="250"/>
				</dd>
			</dl>
	</fieldset>
	</div>
	<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
	</div>
	<input type="hidden" name="staff.staffId" value="<s:property value="staff.staffId"/>" />
</form>
</div>